package entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: NGUYEN VAN NHAN
 * Date: 9/17/14
 * Time: 11:47 AM
 * Long Van Soft Solution Sjc.
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "CONTACT_TYPE")
public class ContactType implements Serializable{
    //MemberContact, socialContact
    private String contactTypeId;
    private String contactTypeName;

    public ContactType() {
    }

    @Id
    @Column(name = "contactTypeId", length = 20)
    public String getContactTypeId() {
        return contactTypeId;
    }

    public void setContactTypeId(String contactTypeId) {
        this.contactTypeId = contactTypeId;
    }

    @Column (name = "contactTypeName", length = 255)
    public String getContactTypeName() {
        return contactTypeName;
    }

    public void setContactTypeName(String contactTypeName) {
        this.contactTypeName = contactTypeName;
    }
}
